#!/bin/bash
folder=$1
echo "folder=$folder"
old_text='https://gitee.com/dhar/BlogPictures/raw/master/'
new_text='https://blog-picture-1307137648.cos.ap-nanjing.myqcloud.com/img/'
grep 'https://gitee.com/dhar/BlogPictures/raw/master/' -rl $folder | sed -i "s/$old_text/$new_text/g" 